use http::{Response, StatusCode};

fn respond_to() -> http::Result<Response<()>> {
    let mut builder = Response::builder()
        .header("Foo", "Bar")
        .header("Content-Type", "text/html")
        .header("X-Custom-Foo", "bar")
        .status(StatusCode::OK);

    builder.body(())
}

fn main() {
    let res = respond_to().unwrap();

    println!("{:?}", res);
}
